package com.xingxuecn.limit.service;

import com.xingxuecn.limit.common.model.Role;
import com.xingxuecn.limit.common.model.Page;
import com.xingxuecn.limit.common.model.TreeNode;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Kris at 2018/9/5 17:58
 */
public interface RoleService {
    List<Role> findAll() throws SQLException;

    List<Role> search(Role role) throws SQLException;

    int add(Role role) throws SQLException;

    int update(Role role) throws SQLException;

    int delete(Integer id) throws SQLException;


   /* List<TreeNode> roleTree() throws SQLException;*/

    Page searchPage(Role role, Integer page, Integer rows) throws SQLException;
}